﻿@model EventDocumentation

@using ApiDoc


@{
    ViewBag.Title = Model.Name;
}

<h1>@Model.Name</h1>

<div class="description">
    <p>
    @Model.Description.ToHtml(Url.Action("Index", "ApiDocumentation"))
    </p>
    <div class="remarks">
            @Model.Remarks.ToHtml(Url.Action("Index", "ApiDocumentation"))
    </div>
</div>

<div class="eventHandlerType">
    <strong>Event Handler Type:</strong> @Html.ApiDocumentationLink(Model.EventHandlerType)
</div>

@if (Model.ParentType != null) {
    <div class="parentType">
        <strong>Owning Type:</strong> @Html.ApiDocumentationLink(Model.ParentType)
    </div>
}

<div class="syntax">
    <h3>Syntax</h3>
    <pre class="brush: csharp">
        @Model.CodeDefinition
    </pre>
</div>


@if (!String.IsNullOrEmpty(Model.Example)) {
    <div class="examples">
        <h2>Examples</h2>
        @Model.Example.ToHtml(Url.Action("Index", "ApiDocumentation"))
    </div>
}

@if (!String.IsNullOrEmpty(Model.SeeAlso)) {
    <div class="seeAlso">
        <h2>See Also</h2>
        @Model.SeeAlso.ToHtml(Url.Action("Index", "ApiDocumentation"))
    </div>
}


<!-- Syntax Highligher Scripts -->
<script type="text/javascript" src="~/Scripts/SyntaxHighlighter/shCore.js"></script>
<script type="text/javascript" src="~/Scripts/SyntaxHighlighter/shBrushCSharp.js"></script>
<link href="~/Content/SyntaxHighlighter/shCore.css" rel="stylesheet" type="text/css" />
<link href="~/Content/SyntaxHighlighter/shThemeDefault.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
    SyntaxHighlighter.defaults.toolbar = false;
    SyntaxHighlighter.all();
</script>
